const path = require('path'),
      w    = require('webpack');

module.exports = {
    entry:{
        idx: './src/idx.js'
    },
    output: {
        path: path.resolve(__dirname, './dist/'),
        filename: '[name].m.js',
        publicPath: './dist/'
    },
    module: {
        rules: [
	{
	    test: /\.css$/,
	    use: [{
		loader: 'style-loader'
	    },{
		loader: 'css-loader'
	    }]
        },
        {
            test: /\.(png|gif|jpg|jpeg)$/,
            use: [{
                loader: 'file-loader',
            }]
        }

        ]
    }
}
